Previous Book Contents Book Index Next

Inside Macintosh: QuickTime /
Chapter 2 - Movie Toolbox / Movie Toolbox Reference
Time Base Functions


Working With Times

The Movie Toolbox provides a number of functions that allow you to work with time structures. This section describes those functions.

All of these functions work with time structures (see "The Time Structure" on page 2-65 for a complete discussion of the time structure). You can use time structures to represent either time values or durations. Time values specify a point in time, relative to a given time base. Durations specify a span of time, relative to a given time scale. Durations are represented by time structures that have the time base set to 0 (that is, the base field in the time structure is set to nil).

You can use the ConvertTime function to convert a time you obtain from one time base into a time that is relative to another time base. Similarly, you can use the ConvertTimeScale function to convert a time from one time scale to another.

You can add two times by calling the AddTime function; you can subtract two times with the SubtractTime function.


Subtopics
AddTime
SubtractTime
ConvertTime
ConvertTimeScale

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996